#ifndef CHATUSERWID_H
#define CHATUSERWID_H

#include <QWidget>

namespace Ui {
class ChatUserWid;
}

class ChatUserWid : public QWidget
{
    Q_OBJECT

public:
    explicit ChatUserWid(QWidget *parent = nullptr);
    ~ChatUserWid();
    QSize sizeHint() const override {
           return QSize(250, 70); // 返回自定义的尺寸
       }
    void SetInfo(QString name, QString head, QString online);
    QString GetName() const;
    QString GetOnlineStatus() const;


private:
    Ui::ChatUserWid *ui;
    QString _name;
    QString _head;
    QString _online;
};

#endif // CHATUSERWID_H
